<template>
    <div class="myLoading">
        <div class="cons">
            <img class="loadingOne" src="../assets/img/loadingOne.png" alt="">
            <img class="loadingTwo" src="../assets/img/loadingTwo.png" alt="">
        </div>
    </div>
</template>

<script>
export default {
    data(){
        return {

        }
    },
    methods:{

    },
}
</script>

<style lang="less" scoped>
.myLoading{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgba(0,0,0, 0.8);
    .cons{
        width: 100px;
        height: 100px;
        position: relative;
        margin: 0 auto;
        top: 50%;
        transform: translateY(-50%);
        .loadingOne{
            width: 50px;
            height: 50px;
            position: absolute;
            left: 0;
            right: 0;
            margin: 0 auto;
            top: 25%;
            animation: oneRotate 0.8s linear infinite;
        }
        .loadingTwo{
            width: 100px;
            height: 100px;
            animation: otwoRotate 0.8s linear infinite;
        }
        @keyframes oneRotate {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(-360deg);
            }
        }
        @keyframes otwoRotate {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }
    }
}
</style>